// pages/setyhm/setyhm.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    isname: false
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  inputname:function(e){
    var that = this;
    if (e.detail.cursor>0){
      that.setData({
        isname:true,
      })
    }else{
      that.setData({
        isname: false,
      })
    }
  },

  save:function(){
    if (this.data.isname == true){
      wx.navigateBack({})
    }
  },
})